/* Copyright 2010 Antonie Jovanoski
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Contact e-mail: Antonie Jovanoski <minimoog77_at_gmail.com>
 */

#ifndef QTWEETGEOBOUNDINGBOX_H
#define QTWEETGEOBOUNDINGBOX_H

#include "qtweetlib_global.h"
#include "qtweetgeocoord.h"

/**
 *  Stores geo bounding box
 *  Doesnt' do anything fancy/calculations just stores boundind box info from twitter api
 */
class QTWEETLIBSHARED_EXPORT QTweetGeoBoundingBox
{
public:
    QTweetGeoBoundingBox();
    QTweetGeoBoundingBox(const QTweetGeoCoord& topLeft,
                         const QTweetGeoCoord& topRight,
                         const QTweetGeoCoord& bottomRight,
                         const QTweetGeoCoord& bottomLeft);
    QTweetGeoCoord topLeft() const { return m_topLeft; }
    QTweetGeoCoord topRight() const { return m_topRight; }
    QTweetGeoCoord bottomRight() const { return m_bottomRight; }
    QTweetGeoCoord bottomLeft() const { return m_bottomLeft; }
    void setTopLeft(const QTweetGeoCoord& topLeft) { m_topLeft = topLeft; }
    void setTopRight(const QTweetGeoCoord& topRight) { m_topRight = topRight; }
    void setBottomRight(const QTweetGeoCoord& bottomRight) { m_bottomRight = bottomRight; }
    void setBottomLeft(const QTweetGeoCoord& bottomLeft) { m_bottomLeft = bottomLeft; }
    bool isValid() const;

private:
    QTweetGeoCoord m_topLeft;
    QTweetGeoCoord m_topRight;
    QTweetGeoCoord m_bottomRight;
    QTweetGeoCoord m_bottomLeft;
};

#endif // QTWEETGEOBOUNDINGBOX_H
